﻿namespace CalculatorLibrary
{
    /// <summary>
    /// The calculation result.
    /// </summary>
    public class CalculationResult
    {
        #region Public Properties

        /// <summary>
        /// Gets or sets a value indicating whether is error.
        /// </summary>
        public bool IsError { get; set; }

        /// <summary>
        /// Gets or sets the resutl.
        /// </summary>
        public decimal? Result { get; set; }

        /// <summary>
        /// Gets or sets the return state.
        /// </summary>
        public ReturnState ReturnState { get; set; }

        /// <summary>
        /// Gets or sets the string result.
        /// </summary>
        public string StringResult { get; set; }

        #endregion
    }
}